<?php
class Page {
	public $data = array (
		'id' => 0,
		'num' => '',
		'date' => '',
		'host' => '',
		'loginId' => '',
		'auther' => '',
		'password' => '',
		'email' => '',
		'title' => '',
		'content' => '',
		'count' => '',
		'depth' => ''
	);
	function __construct() {}
	private function __get($key) {
		if ($this->__isset($key))
			return $this->data[$key];
		else
			'';
	}
	private function __set($key, $value) {
		$this->data[$key] = $value;
	}
	private function __isset($nm) {
		return isset ($this->data[$nm]);
	}
	private function __unset($nm) {
		unset ($this->data[$nm]);
	}
	function setData($data){
		foreach ($data as $key=>$value)
			$this->data[$key]=$value;
	}
}
?>
